package com.dnjn.mes.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.mes.biz.domain.MesResolvePlan;

import java.util.List;

/**
 * <p>
 * 异常解决方案表 服务类
 * </p>
 *
 * @author Amber
 * @since 2023-07-26
 */
public interface IMesResolvePlanService extends IService<MesResolvePlan> {

    String importData(List<MesResolvePlan> list, boolean updateSupport) throws Exception;

    int savePlan(MesResolvePlan domain);

    List<MesResolvePlan> selectPlanList(MesResolvePlan domain);

    Long removePlanById(Long planId);

    List<MesResolvePlan> selectAllPlanList(MesResolvePlan domain);

    List<MesResolvePlan> getPlanByWorkpieceId(MesResolvePlan domain);

    List<MesResolvePlan> getPlanPageByExcepId(Long exceptId);

    List<MesResolvePlan> getPlansByAssemblyId(Long assemblyId,String searchKey,Long equipmentId);

    MesResolvePlan getPlan(Long planId);

    List<MesResolvePlan> getPlanPageByWorkpieceId(Long workpieceId,Long equipmentId);
}
